package cn.e4j.modular.crm.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.e4j.core.typewrap.PO;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * <p>
 * 
 * </p>
 *
 * @author mengyb
 * @since 2020-03-12
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("GWDD_T")
public class Gwdc005Export extends PO<Gwdc005Export> {

    private static final long serialVersionUID = 1L;

    /**
     * 集团编号
     */
    @TableId(value = "GWDDENT", type = IdType.INPUT)
    private String GWDDENT;

    /**
     * 协议编号
     */
    @Excel(name = "协议编号")
    private String GWDD001;

    /**
     * 是否审核
     */
    @Excel(name = "是否审核",replace = {"已审核_Y","未审核_N"})
    private String GWDDACTI;

    /**
     * 客户类型
     */
    @Excel(name = "客户类型",replace = {"核心-总部客户_1","核心-办事处客户_2","非核心协议客户_3","非核心销售终端_4"})
    private String GWDD003;

    /**
     * 结算客户
     */
    @Excel(name = "渠道商")
    private String GWDD031_NAME;


    /**
     * 生效日期
     */
    @Excel(name = "生效日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate GWDD005;

    /**
     * 失效日期
     */
    @Excel(name = "失效日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate GWDD006;

    /**
     * 单据日期
     */
    @Excel(name = "申请日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate GWDD004;

    /**
     * 申请人员
     */
    @Excel(name = "申请人员")
    private String GWDD007_NAME;

    /**
     * 申请部门
     */
    @Excel(name = "申请部门")
    private String GWDD008_NAME;

    /**
     * 单头备注
     */
    @Excel(name = "备注")
    private String GWDD011;

    @Override
    protected Serializable pkVal() {
        return this.GWDDENT;
    }

}
